﻿#include "FITKAcousticsNCTSeptum.h"
namespace Acoustics
{

    FITKAcousticsNCTSeptum::~FITKAcousticsNCTSeptum()
    {

    }

    FITKAcousticsNCTAbstractLayObj::NCTLayUpType FITKAcousticsNCTSeptum::getNCTLayUpType()
    {
        return FITKAcousticsNCTAbstractLayObj::NCTLayUpType::Septum;
    }

    double FITKAcousticsNCTSeptum::getMassPerUnitArea()
    {
        return _surfaceMass;
    }

    void FITKAcousticsNCTSeptum::setSurfaceMass(double surfaceMass)
    {
        _surfaceMass = surfaceMass;
    }

    double FITKAcousticsNCTSeptum::getSurfaceMass()
    {
        return _surfaceMass;
    }

    bool FITKAcousticsNCTSeptum::copy(Core::FITKAbstractDataObject *obj)
    {
        //转换强制类型
        Acoustics::FITKAcousticsNCTSeptum* sepPtr = dynamic_cast<Acoustics::FITKAcousticsNCTSeptum*>(obj);

        if(nullptr != sepPtr)//判断是否转换成功
        {
            //复制成员变量
            _surfaceMass = sepPtr->getSurfaceMass();
            // 调用父类的方法
        }

        return  Acoustics::FITKAcousticsNCTAbstractLayObj::copy(obj);
    }

}
